﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Apewer.Web
{

    /// <summary>表示 API 行为结果，主体为文本。</summary>
    public class TextResult : BytesResult
    {

        /// <summary>创建结果实例。</summary>
        public TextResult(string text, string contentType = "text/plain") : base(text.Bytes(), contentType) { }

        /// <summary>创建结果实例。</summary>
        public TextResult(int status, string text, string contentType = "text/plain") : base(status, text.Bytes(), contentType) { }

    }

}
